package lumis.portal.incontextedit;

/**
 * Factory for {@link IServiceInterfaceInContextEdit}.
 * 
 * @version $Revision: 13214 $ $Date: 2011-07-07 21:46:10 -0300 (Thu, 07 Jul 2011) $
 * @since 6.0.1
 */
public class ServiceInterfaceInContextEditFactory
{
	/**
	 * Singleton to be used as default implementation.
	 * @since 6.0.1
	 */
	private static IServiceInterfaceInContextEdit CONTENT_IN_CONTEXT_EDIT;

	// initiates the default implementation
	static
	{
		try
		{
			CONTENT_IN_CONTEXT_EDIT = Class.forName(
					"lumis.content.incontextedit.ContentServiceInterfaceInContextEdit").asSubclass(
					IServiceInterfaceInContextEdit.class).newInstance();
		}
		catch (Exception e)
		{
			throw new RuntimeException(e);
		}
	}

	/**
	 * Returns the default implementation of
	 * {@link IServiceInterfaceInContextEdit}.
	 * 
	 * @return the default implementation of
	 *         {@link IServiceInterfaceInContextEdit}.
	 * @since 6.0.1
	 */
	public static IServiceInterfaceInContextEdit getDefaultServiceInterfaceInContextEdit()
	{
		return CONTENT_IN_CONTEXT_EDIT;
	}
}
